<template>
  <div class="category">
    <div class="title">{{ title }}</div>
    <slot>我是默认插槽的内容</slot>
  </div>
</template>
<script setup lang="ts">
const props = defineProps(['title'])
</script>
<style scoped>
.category {
  background: skyblue;
  box-shadow: 0 0 10px;
  padding: 10px 0;
  width: 200px;
  height: 160px;
  text-align: center;
}
.title {
  background: orange;
}
</style>
